package com.yinhe.music.yhmusic.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yinhe.music.yhmusic.R;
import com.yinhe.music.yhmusic.model.MoreBean;

import java.util.List;

/**
 * Created by hasee on 2017/8/15.
 */

public class MoreDialogAdapter extends BaseQuickAdapter<MoreBean, BaseViewHolder> {
    public MoreDialogAdapter(@Nullable List<MoreBean> data) {
        super(R.layout.new_music_more_item, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MoreBean item) {
        helper.setImageResource(R.id.image, item.getIcon())
                .setText(R.id.text, item.getIconName());
    }
}
